package com.miniserver.tql.database.impl;

import com.miniserver.tql.database.DatabaseEngine;

public class MySQLEngineImpl extends DatabaseEngineBaseImpl implements DatabaseEngine {
	public MySQLEngineImpl() {		
	}

	/**
	 * 构造MySQL数据分页SQL
	 * 
	 * @param queryString
	 * @param startIndex
	 * @param pageSize
	 * @return
	 */
	@Override
	protected String getPageSQL(String queryString, Integer pageSize, Integer pageIndex) {
		return queryString + " limit " + (pageIndex - 1) * pageSize + "," + pageSize;
	}
}
